package com.bdcom.nms.NmsCollect.test.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bdcom.nms.NmsCollect.test.dao.UsersDao;
import com.bdcom.nms.NmsCollect.test.po.Users;
@Service
@Transactional
public class UsersService {
	/**
	 * 为了测试spring+jpa 注掉此处。
	 */
	@Autowired
	private UsersDao usersDao;
	
	public void findByUid(Integer uid){
		
		Users us=usersDao.findByUid(uid);
		
		if(us!=null){
			
			System.out.println(us.toString());
			
		}
		
		
	}

}
